package org.bbmall.bean;

import com.sun.org.apache.xpath.internal.operations.Bool;

public class Result {
    Boolean success;

    String message;

    Object data;

    public Result(Boolean success, String message, Object data) {
        this.success = success;
        this.message = message;
        this.data = data;
    }

    public Result() {
    }

    public Result(Object data){
        new Result(true,"success",data);
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
